<template>
  <div>
    {{ title }}-{{ age }}
    <h2>ComA </h2>
    <ComB></ComB>
  </div>
</template>
<script setup>
import ComB from '@/components/ComB.vue'
import { inject, provide } from 'vue';

const title = inject('title')
const age = inject('age', 20)


</script>